package com.ruoyi.parcel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.parcel.mapper.EOrderDetailsMapper;
import com.ruoyi.parcel.domain.EOrderDetails;
import com.ruoyi.parcel.service.IEOrderDetailsService;

/**
 * EOrderDetailsService业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
@Service
public class EOrderDetailsServiceImpl implements IEOrderDetailsService 
{
    @Autowired
    private EOrderDetailsMapper eOrderDetailsMapper;

    /**
     * 查询EOrderDetails
     * 
     * @param id EOrderDetails主键
     * @return EOrderDetails
     */
    @Override
    public EOrderDetails selectEOrderDetailsById(Long id)
    {
        return eOrderDetailsMapper.selectEOrderDetailsById(id);
    }

    /**
     * 查询EOrderDetails列表
     * 
     * @param eOrderDetails EOrderDetails
     * @return EOrderDetails
     */
    @Override
    public List<EOrderDetails> selectEOrderDetailsList(EOrderDetails eOrderDetails)
    {
        return eOrderDetailsMapper.selectEOrderDetailsList(eOrderDetails);
    }

    /**
     * 新增EOrderDetails
     * 
     * @param eOrderDetails EOrderDetails
     * @return 结果
     */
    @Override
    public int insertEOrderDetails(EOrderDetails eOrderDetails)
    {
        return eOrderDetailsMapper.insertEOrderDetails(eOrderDetails);
    }

    /**
     * 修改EOrderDetails
     * 
     * @param eOrderDetails EOrderDetails
     * @return 结果
     */
    @Override
    public int updateEOrderDetails(EOrderDetails eOrderDetails)
    {
        return eOrderDetailsMapper.updateEOrderDetails(eOrderDetails);
    }

    /**
     * 批量删除EOrderDetails
     * 
     * @param ids 需要删除的EOrderDetails主键
     * @return 结果
     */
    @Override
    public int deleteEOrderDetailsByIds(Long[] ids)
    {
        return eOrderDetailsMapper.deleteEOrderDetailsByIds(ids);
    }

    /**
     * 删除EOrderDetails信息
     * 
     * @param id EOrderDetails主键
     * @return 结果
     */
    @Override
    public int deleteEOrderDetailsById(Long id)
    {
        return eOrderDetailsMapper.deleteEOrderDetailsById(id);
    }
}
